package com.april.pattern.behavioral.templatemethod;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/08 22:56
 * @description
 */
public class FeCourse extends AbstractCourse {
    private boolean needWriteArticleFlag = false;

    public FeCourse(boolean needWriteArticleFlag) {
        this.needWriteArticleFlag = needWriteArticleFlag;
    }

    @Override
    void packageCourse() {
        System.out.println("提供课程的前端代码");
        System.out.println("提供课程的图片等多媒体素材");
    }

    @Override
    protected boolean needWriteArticle() {
        return this.needWriteArticleFlag;
    }
}
